package ru.pb.auth.auto_save;

import ru.pb.auth.network.ANetworkEngine;
import ru.pb.auth.network.threading.ThreadPoolManager;

/**
 * @author: Felixx
 */
public class AuthShutdownThread extends Thread
{
	@Override
	public void run()
	{
		try
		{
			ANetworkEngine.getInstance().unbind();
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}

		try
		{
			ThreadPoolManager.getInstance().shutdown();
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
	}
}